package com.dstation.dao;

import com.dstation.domain.UserInfo;
import org.apache.ibatis.annotations.Param;

public interface UserInfoMapper {

    String selectUserPhoneIsExistByPhone(@Param("userPhone") String userPhone);

    boolean insertUserInfo(@Param("userInfo") UserInfo userInfo);

    UserInfo selectUserInfo(@Param("userInfo") UserInfo userInfo);

    UserInfo findUserInfoByUserId(@Param("userId") Long userId);

    boolean updateUserPrivilegetimesByUserId(@Param("userId") Long userId);

    int selectFansNumByUserId(@Param("userId") Long userId);

    Boolean updateUserBlanceByUserId(@Param("userId")long userId, @Param("operate")int operate);

    int updatePrivilegetimesByUserID(@Param("userId")Long userId, @Param("privilegetimes")Integer privilegetimes);

    Boolean updateUserInfo(@Param("userInfo") UserInfo userInfo);
}